package com.jweb.framework.core;
import java.io.Serializable;
import java.util.Locale;
import java.util.Map;

public interface User extends Serializable {
	
	public static final String SESSION_ATTR_NAME = "user";
    public static final String ATTR_SOURCE = "x-source";
    public static final String ATTR_TOKEN = "x-token";
    public static final String ATTR_PRINCIPAL = "x-principal";
    public static final String ATTR_CERT = "x-certificate";
    public static final String ATTR_PASSWORD = "x-password";
	
	public boolean isLogined();

	public String getState();

	public String getUniqueId();

	public String getUserId();

	public String getCifId();

	public String getUUID();

	public String getName();

	public String[] getRoles();

	public Locale getLocale();

	public Object getAttribute(String s);

	public Map getAttributes();

}
